print("2420220065")
print("24大数据1班温嘉怡")
def hanoi(n,source,target,middle):
    if n==1:
        print(f"把1从{source}移动到{target}")
        return
    hanoi(n-1,source,middle,target)
    print(f"将其从{source}移动到{target}")
    hanoi(n-1,middle,target,source)

hanoi(3,'a','b','c')